import request from '@/utils/request'
// 获取分页内容 /admin/product/list/{page}/{limit} 
export const reqProductList = (page, limit) => request({
    url: `/list-api/admin/product/list/${page}/${limit}`,
    method: 'get'
})
// 商品上架 /admin/product/onSale/{skuId}
export const reqOnSale = (skuId) => request({
    url: `/list-api/admin/product/onSale/${skuId}`,
    method: 'get'
})
// 商品下架 /admin/product/cancelSale/{skuId}
export const reqCancelSale = (skuId) => request({
    url: `/list-api/admin/product/cancelSale/${skuId}`,
    method: 'get'
})
// sku商品详细 /admin/product/getSkuById/{skuId}
export const reqSkuInfo = (skuId) => request({
    url: `/list-api/admin/product/getSkuById/${skuId}`,
    method: 'get'
})